Skip to content

feat: support DiT and VAE for flux2 on npu device.#1983

Merged
ethan686 merged 2 commits into
xLLM-AI:mainfrom
wang-shuibin:flux2_dit_vae_0720
Jul 23, 2026
Merged

feat: support DiT and VAE for flux2 on npu device.#1983
ethan686 merged 2 commits into
xLLM-AI:mainfrom
wang-shuibin:flux2_dit_vae_0720

Conversation

@wang-shuibin

Copy link
Copy Markdown
Collaborator

Description

support DiT and VAE module for flux2

Related Issues

Feat:support DiT and VAE module for flux2

Change Type

  • Bug fix
  • New feature
  • Performance improvement
  • Refactor
  • Documentation
  • Test
  • Build or CI

Pull Request Checklist

Thank you for contributing to xLLM. Before requesting review, please make sure the following items are complete.

PR Title and Commit Messages

  • The PR title and each commit message follow the xLLM commit format: <type>: <subject>.

Allowed types: feat, bugfix, docs, test, refactor, chore, style, revert, perf, model, build, release.
The subject should use clear English, start with a verb, include at least 4 words, and end with ..

Pre-commit Checks

  • I have installed pre-commit by running pip install pre-commit or an equivalent command.
  • I have installed the hooks with pre-commit install.
  • I have run pre-commit run --all-files and fixed any reported issues.

If you are unsure how to set up pre-commit, see the pre-commit documentation.

Self Review

  • I have self-reviewed the code according to .agents/skills/code-review/references/custom-code-style.md, especially code written or assisted by AI.
  • I have rebased this PR onto the latest main branch.

Build and Test Coverage

  • Tests have been added or updated as needed.
  • CUDA: python setup.py build test has passed on a CUDA machine.
  • NPU: python setup.py build test has passed on an NPU machine.
  • MLU: python setup.py build test has passed on an MLU machine.

Reviewer Notes

@wang-shuibin wang-shuibin changed the title feat:support DiT and VAE module for flux2 feat:support DiT and VAE for flux2 Jul 20, 2026
Comment thread xllm/core/framework/model/model_args.h
Comment thread xllm/models/dit/transformers/transformer_flux.h
Comment thread xllm/models/dit/transformers/transformer_flux2.h Outdated
Comment thread xllm/models/dit/pipelines/pipeline_flux2_base.h
xiao-yu-chen
xiao-yu-chen previously approved these changes Jul 22, 2026
Comment thread xllm/models/dit/autoencoders/autoencoder_kl_flux2.h Outdated
Co-authored-by: ethan686 <zbw_ethan@163.com>
@ethan686
ethan686 self-requested a review July 22, 2026 14:12
@XuZhang99 XuZhang99 changed the title feat:support DiT and VAE for flux2 feat: support DiT and VAE for flux2 on npu device. Jul 23, 2026
@ethan686
ethan686 merged commit 39be90d into xLLM-AI:main Jul 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants